package com.xplay.xpocker.service.gaming;

import com.xplay.xpocker.entity.GameRuRoom;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xplay.xpocker.entity.GameRuRoomDTO;
import com.xplay.xpocker.room.message.MessageContent;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author xplay
 * @since 2023-08-18
 */
public interface GameRuRoomService extends IService<GameRuRoom> {
    GameRuRoom createRoom(String code, String type, String metaData);

    GameRuRoom queryRoomByCode(String roomCode);

    /**
     * 返回当前用户所在房间
     *
     * @return
     */

    GameRuRoom currentUserRoom();

    void doMessage(MessageContent<Object> content);


    void updateUserState(Boolean hook, Boolean online);

    /**
     * 房间内 和房间里面的用户
     *
     * @param roomCode
     * @return
     */

    GameRuRoomDTO queryRoomRuInfo(String roomCode);
}
